package br.gov.mi.corporativo.dominio.boundary.rhmi.cargo;

import java.util.List;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

import br.gov.mi.corporativo.dominio.entidade.rhmi.Cargo;

@WebService
public interface CargoEndPoint {
	
	@WebMethod(operationName = "recuperarCargoPorId")
	public @WebResult(name="cargoId")Cargo recuperarPorId(@WebParam(name="id")Long id); 
	
	@WebMethod(operationName = "recuperarTodosCargos")
	public @WebResult(name="cargos")List<Cargo> recuperarTodos(); 
	
	@WebMethod(operationName = "recuperarCargoPorDescricao")
	public @WebResult(name="cargoDesc")Cargo recuperarPorDescricao(@WebParam(name="descricao")String descricao);
	
	
	@WebMethod(operationName = "recuperarCargoPorNome")
	public @WebResult(name="cargoNome")Cargo recuperarPorNome(@WebParam(name="nome")String nome);
	
   
}
